package com.class5.springboot.frame.code;

/**
 * Created by YT on 2018/5/24.
 */
public class CodeItemUtils {

    public static CodeItem getCodeItem(String code,String text){
        CodeItem codeItem = new CodeItem();
        codeItem.setCode(code);
        codeItem.setText(text);
        return codeItem;
    }
    public static CodeItem getCodeItem(int code,String text){
        CodeItem codeItem = new CodeItem();
        codeItem.setCode(code+"");
        codeItem.setText(text);
        return codeItem;
    }
}
